cmake_minimum_required(VERSION 3.16)
project(qq_plugin)

set(CMAKE_CXX_STANDARD 14) 

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -Wl,-rpath=.")


message("-------- qq_plugin -------")

# header file path
# include_directories(.)

# source directory
aux_source_directory(. SRC_LIST)

# build to library
add_library(${PROJECT_NAME} SHARED ${SRC_LIST} ${COMMON_SRC_LIST} ${PLUGIN_SRC_LIST}) # 不可以包含 ${CORE_SRC_LIST},

# -L
link_directories(${HOME}/lib)

# -l
target_link_libraries(${PROJECT_NAME} easyloggingcpp pthread)

# set library output path
SET(LIBRARY_OUTPUT_PATH ${HOME}/bin)




